import {
    mapState,
    mapActions
} from 'vuex'

export const commonMixin = {
    computed:{
        //...mapState('user', ['loginInfo'])
    },
    data() {
      return { }
    },
    filters: {
        fixed(v, scale){
            if(v){
                if(!scale){
                    scale = 2
                }
                return parseFloat(v).toFixed(scale)
            }
            return v
        }
    },

}